
JAVA_HOME=/usr/local/jdk-9.0.4
JAVA_HOME=/soft/jdk/jdk-18.0.2.1

libs=/home/jandan/web/WEB-INF/lib
tomcat_libs=/home/jandan/apache-tomcat-9.0.5/lib


cp=`echo $libs/*.jar | tr ' ' ':'`
tcp=`echo $tomcat_libs/*.jar | tr ' ' ':'`


dir=/home/jandan/src
#dir=/home/jandan/src/jar/jandan-frame
#dir=/home/jandan/src/jar/jandan-web


#find $dir -name *.class -delete
find $dir -name "*.class" | while read f
do
#	echo "rm -rf $f"
#	rm -rf "$f"
	echo $f
done;



find $dir -name "*.java" | while read f
do
	
echo $JAVA_HOME/bin/javac -encoding UTF-8 -cp "$cp:$tcp" $f
$JAVA_HOME/bin/javac -encoding UTF-8 -cp "$cp:$tcp" $f 

done;


